package com.zmytest.annotation.scope.request;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created on 2018/12/29.
 *
 * @author zhangmingyu
 */
@Service
public class Service1 {

    @Autowired
    private ScopeRequest scopeRequest;
    @Autowired
    private Service2 service2;

    public void test(){
        System.out.println(scopeRequest.getName());
        System.out.println(scopeRequest);
        service2.test();
    }
}
